import Layout from '@/layout'

/**
 * 数据调用相关路由
 */
const callRouter = {
  path: '/call',
  name: 'call',
  component: Layout,
  alwaysShow: true,
  meta: { title: '快速调用', icon: 'el-icon-phone' },
  children: [
    {
      path: 'git',
      name: 'git',
      component: () => import('@/views/call/vcs/git'),
      meta: { title: 'Git工具', icon: 'el-icon-ice-tea', 'pluginId': 'tools-version-control' }
    },
    {
      path: 'maven',
      name: 'maven',
      component: () => import('@/views/call/maven'),
      meta: { title: 'Maven工具', icon: 'el-icon-ice-tea', 'pluginId': 'tools-maven' }
    },
    {
      path: 'mybatis',
      name: 'mybatis',
      component: () => import('@/views/call/mybatis/index'),
      meta: { title: 'Mybatis', icon: 'el-icon-s-cooperation', 'pluginId': 'tools-mybatis' }
    },
    {
      path: 'dubbo',
      name: 'dubbo',
      component: () => import('@/views/call/dubbo'),
      meta: { title: 'Dubbo', icon: 'el-icon-chat-round', 'pluginId': 'tools-dubbo' }
    },
    {
      path: 'soap',
      name: 'soap',
      component: () => import('@/views/call/soap'),
      meta: { title: 'SoapUI', icon: 'el-icon-chat-dot-square', 'pluginId': 'tools-soap' }
    },
    {
      path: 'translate',
      name: 'translate',
      component: () => import('@/views/call/nametool'),
      meta: { title: '取名工具', icon: 'el-icon-data-board', 'pluginId': 'tools-name' }
    },
    {
      path: 'quartz',
      name: 'quartz',
      component: () => import('@/views/monitor/quartz'),
      meta: { title: '定时任务工具', icon: 'el-icon-data-board', 'pluginId': 'tools-quartz' }
    },
    {
      path: 'tcpclient',
      name: 'tcpclient',
      component: () => import('@/views/tcp/tcpclient'),
      meta: { title: 'tcp 客户端工具', icon: 'el-icon-ice-tea', 'pluginId': 'tools-tcp' }
    },
    {
      path: 'tcpserver',
      name: 'tcpserver',
      component: () => import('@/views/tcp/tcpserver'),
      meta: { title: 'tcp 服务端工具', icon: 'el-icon-ice-tea', 'pluginId': 'tools-tcp' }
    }
  ]
}

export default callRouter
